{extend name="template/base" /}
{block name="style"}
<style>
tbody td img {
    border: 1px solid #eee;
    max-height: 100px;
    max-width: 100px;
    padding: 4px;
}
</style>
{/block}
{block name="content"}
<div class="page-container">
          <table class="table table-border table-bg  table-bordered table-hover">
            <thead>
              <tr>
                <th  colspan=6>公司及联系人信息</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <th class='active text-r'>公司名称：</th>
                <td colspan=5>{$joinin_info.company_name|default=''}</td>
              </tr>
              <tr>
                <th  class='active text-r'>公司所在地：</th>
                <td colspan=5>{$joinin_info.company_address|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>公司电话：</th>
                <td>{$joinin_info.company_phone|default=''}</td>
                <th class='active text-r'>员工总数：</th>
                <td>{$joinin_info.company_employee_count|default=''}</td>
                <th class='active text-r'>注册资金：</th>
                <td>{$joinin_info.company_registered_capital|default=''}万元</td>
              </tr>
              <tr>
                <th class='active text-r'>联系人姓名：</th>
                <td>{$joinin_info.contacts_name|default=''}</td>
                <th class='active text-r'>联系人电话：</th>
                <td>{$joinin_info.contacts_phone|default=''}</td>
                <th class='active text-r'>电子邮箱</th>
                <td>{$joinin_info.contacts_email|default=''}</td>
              </tr>
            </tbody>
          </table>
  		<table class="table table-border table-bg  table-bordered table-hover mt-20">
            <thead>
              <tr>
                <th colspan=6>营业执照信息（副本）</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <th width="20%" class='active text-r'>营业执照号：</th>
                <td colspan=5>{$joinin_info.business_licence_number|default=''}</td>
              </tr>
              <tr>
                <th  class='active text-r'>营业执照所在地：</th>
                <td colspan=5>{$joinin_info.business_licence_address|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>营业执照有效期：</th>
                <td colspan=5>{$joinin_info.business_licence_start|default=''}-{$joinin_info.business_licence_end|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>法定经营范围：</th>
                <td colspan=5>{$joinin_info.business_sphere|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>营业执照电子版：</th>
                <td colspan=5><a target='_blank' href='{$joinin_info.business_licence_number_electronic|img_url}'>
                {if($joinin_info.business_licence_number_electronic)}
                <img src="{$joinin_info.business_licence_number_electronic|img_url}" />
                {/if}
                </a></td>
              </tr>
            </tbody>
          </table>
  		<table class="table table-border table-bg  table-bordered table-hover mt-20">
            <thead>
              <tr>
                <th colspan=6>组织机构代码证</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <th width="20%" class='active text-r'>组织机构代码：</th>
                <td colspan=5>{$joinin_info.organization_code|default=''}</td>
              </tr>
              <tr>
                <th  class='active text-r'>组织机构代码证电子版：</th>
                <td colspan=5><a target='_blank' href='{$joinin_info.organization_code_electronic|img_url}'>
                {if($joinin_info.organization_code_electronic)}
                <img src="{$joinin_info.organization_code_electronic|img_url}" />
              	{/if}
                </a></td>
              </tr>
            </tbody>
          </table>
  		<table class="table table-border table-bg  table-bordered table-hover mt-20">
            <thead>
              <tr>
                <th colspan=6>一般纳税人证明</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <th width="20%" class='active text-r'>一般纳税人证明：</th>
                <td colspan=5><a target='_blank' href='{$joinin_info.general_taxpayer|img_url}'>
                {if($joinin_info.general_taxpayer)}
                <img src="{$joinin_info.general_taxpayer|img_url}"/>
              	{/if}
                </a></td>
              </tr>
            </tbody>
          </table>
          <table class="table table-border table-bg  table-bordered table-hover mt-20">
            <thead>
              <tr>
                <th colspan=6>开户银行信息</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <th width="20%" class='active text-r'>银行开户名：</th>
                <td colspan=5>{$joinin_info.bank_account_name|default=''}</td>
              </tr>
              <tr>
                <th  class='active text-r'>公司银行账号：</th>
                <td colspan=5>{$joinin_info.bank_account_number|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>开户银行支行名称：</th>
                <td colspan=5>{$joinin_info.bank_name|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>支行联行号：</th>
                <td colspan=5>{$joinin_info.bank_code|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>开户银行所在地：</th>
                <td colspan=5>{$joinin_info.bank_address|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>开户银行许可证电子版：</th>
                <td colspan=5><a target='_blank' href='{$joinin_info.bank_licence_electronic|img_url}'>
                {if($joinin_info.bank_licence_electronic)}
                <img src="{$joinin_info.bank_licence_electronic|img_url}" />
              	{/if}
                </a></td>
              </tr>
            </tbody>
          </table>
          <table class="table table-border table-bg  table-bordered table-hover mt-20">
            <thead>
              <tr>
                <th colspan=6>结算账号信息</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <th width="20%" class='active text-r'>银行开户名：</th>
                <td colspan=5>{$joinin_info.settlement_bank_account_name|default=''}</td>
              </tr>
              <tr>
                <th  class='active text-r'>公司银行账号：</th>
                <td colspan=5>{$joinin_info.settlement_bank_account_number|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>开户银行支行名称：</th>
                <td colspan=5>{$joinin_info.settlement_bank_name|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>支行联行号：</th>
                <td colspan=5>{$joinin_info.settlement_bank_code|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>开户银行所在地：</th>
                <td colspan=5>{$joinin_info.settlement_bank_address|default=''}</td>
              </tr>
            </tbody>
          </table>
  		<table class="table table-border table-bg  table-bordered table-hover mt-20">
            <thead>
              <tr>
                <th colspan=6>税务登记证</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <th width="20%" class='active text-r'>税务登记证号：</th>
                <td colspan=5>{$joinin_info.tax_registration_certificate|default=''}</td>
              </tr>
              <tr>
                <th  class='active text-r'>纳税人识别号：</th>
                <td colspan=5>{$joinin_info.taxpayer_id|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>税务登记证号电子版：</th>
                <td colspan=5><a target='_blank' href='{$joinin_info.tax_registration_certificate_electronic|img_url}'>
                {if($joinin_info.tax_registration_certificate_electronic)}
                <img src="{$joinin_info.tax_registration_certificate_electronic|img_url}" />
              	{/if}
                </a></td>
              </tr>
            </tbody>
          </table>
    
       
    <form id="form" action="{$Think.config.base_url}{:url('admin/store.store_joinin/audit')}" method="post">
	    <input id="verify_type" name="verify_type" type="hidden">
	    <input name="member_id" type="hidden" value="{$joinin_info.member_id}">
  		<table class="table table-border table-bg  table-bordered table-hover mt-20">
            <thead>
              <tr>
                <th colspan=6>店铺经营信息</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <th width="20%" class='active text-r'>卖家账号：</th>
                <td colspan=5>{$joinin_info.seller_name|default=''}</td>
              </tr>
              <tr>
                <th  class='active text-r'>店铺名称：</th>
                <td colspan=5>{$joinin_info.store_name|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>店铺等级：</th>
                <td colspan=5>{$joinin_info.sg_name|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>开店时长：</th>
                <td colspan=5>{$joinin_info.joinin_year|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>店铺分类：</th>
                <td colspan=5>{$joinin_info.sc_name|default=''}</td>
              </tr>
              <tr>
                <th class='active text-r'>应付总金额：</th>
                {if($joinin_info.joinin_state == STORE_JOIN_STATE_NEW)}
                <td colspan=5><input name='paying_amount' class='input-text radius' type='text' value="{$joinin_info.paying_amount|default=''}"/></td>
                {else /}
                <td colspan=5>{$joinin_info.paying_amount|default=''}</td>
                {/if}
              </tr>
              <tr>
                <th class='active text-r'>经营类目：</th>
                <td colspan=5>
                    {if(!empty($joinin_info.store_class_names))}
                	<table class="table table-border table-bg  table-bordered table-hover">
			            <thead>
			              <tr>
			                <th >分类1</th>
			                <th >分类2</th>
			                <th >佣金比例（%）</th>
			              </tr>
			            </thead>
			            <tbody>
			            {foreach(joinin_info.store_class_names as $key => $val)}
			              <tr>
			                <td class='text-c'>{$val['class_1_name']}</td>
			                <td class='text-c'>{$val['class_2_name']}</td>
			                {if($joinin_info.joinin_state == STORE_JOIN_STATE_NEW)}
			                <td class='text-c' colspan=5><input class='input-text radius' name='commis_rate[]' type='text' value="{$joinin_info['store_class_commis_rates'][$key]}"/></td>
			                {else /}
			                <td class='text-c' >{$joinin_info['store_class_commis_rates'][$key]}</td>
			                {/if}
			              </tr>
			              {/foreach}
			            </tbody>
			        </table>
                    {/if}
                </td>
              </tr>
              {if($joinin_info.joinin_state != STORE_JOIN_STATE_NEW)}
              <tr>
                <th class='active text-r'>付款凭证：</th>
                <td colspan=5><a target='_blank' href='{$joinin_info.paying_money_certificate|img_url}'>
                {if($joinin_info.paying_money_certificate)}
                <img src="{$joinin_info.paying_money_certificate|img_url}" />
              	{/if}
                </a></td>
              </tr>
              <tr>
                <th class='active text-r'>付款凭证说明：</th>
                <td colspan=5>{$joinin_info.paying_money_certificate_explain}</td>
              </tr>
              {/if}
              {in name='$joinin_info.joinin_state' value='$audit_state'}
              <tr>
                <th class='active text-r'>审核意见：</th>
                <td colspan=5><textarea name='message' class='textarea radius' placeholder='填写审核意见..'> </textarea></td>
              </tr>
              {/in}
              {in name='$joinin_info.joinin_state' value='$complete_state'}
              <tr>
                <th class='active text-r'>审核意见：</th>
                <td colspan=5>{$joinin_info.joinin_message|default=''}</textarea</td>
              </tr>
              {/in}
            </tbody>
          </table>
          {in name='$joinin_info.joinin_state' value='$audit_state'}
          <div class='mt-20 text-c'>
	          <input class="btn btn-primary radius" type="submit" onclick="$('#verify_type').val('pass');return true;" value="通过">&nbsp;&nbsp;&nbsp;
	          <input class="btn btn-default radius" type="submit" onclick="$('#verify_type').val('fail');return true;" value="拒绝">
          </div>
          {/in}
          </form>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript">
    $(function () {
        $("[name='mobile_bind'][value='{$vo.mobile_bind==1 ? 1 : 0}']").attr("checked", true);
        $("[name='email_bind'][value='{$vo.email_bind==1 ? 1 : 0}']").attr("checked", true);
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
        $("#form").Validform({
            tiptype: 2,
            ajaxPost: true,
            showAllError: true,
            callback: function (ret) {
                ajax_progress(ret);
            }
        });
    })
</script>
{/block}